package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    PageResult queryByCondition(Integer currentPage, String queryString, Integer pageSize);

    Role findById(Integer id);

    List<Integer> findPermissionByRoleId(Integer id);

    List<Integer> findMenuByRoleId(Integer id);


    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);

    void delete(Integer id);
}
